﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ledict.ConditionExtract.DAL;
using System.Data;
using Ledict.ConditionExtract.Model;
namespace Ledict.ConditionExtract.BLL
{
    public  class BatchEditCaseCauseBLL
    {
        BatchEditCaseCauseDAL batcheditcasecausedal = new BatchEditCaseCauseDAL();


        /// <summary>
        /// 获得数据列表(所有下级)
        /// </summary>
        public DataTable GetNeedDate()
        {
            return batcheditcasecausedal.GetNeedDate();
        }

        /// <summary>
        /// 法定
        /// </summary>
        /// <param name="oldPid"></param>
        /// <param name="newPid"></param>
        /// <returns></returns>
        public bool UpdateParent_FD(string oldPid, string newPid)
        {
            return batcheditcasecausedal. UpdateParent_FD( oldPid,  newPid);
        }
        /// <summary>
        /// 酌定
        /// </summary>
        /// <param name="oldPid"></param>
        /// <param name="newPid"></param>
        /// <returns></returns>
        public bool UpdateParent_ZD(string oldPid, string newPid)
        {
            return batcheditcasecausedal.UpdateParent_ZD(oldPid, newPid);
        }
        /// <summary>
        /// 刑罚
        /// </summary>
        /// <param name="oldPid"></param>
        /// <param name="newPid"></param>
        /// <returns></returns>
        public bool UpdateParent_XF(string oldPid, string newPid)
        {
            return batcheditcasecausedal.UpdateParent_XF(oldPid, newPid);
        }

        public bool UpdateParent_XFTime(string oldPid, string newPid)
        {
            return batcheditcasecausedal.UpdateParent_XFTime(oldPid, newPid);
        }


        /// <summary>
        /// 犯罪相关情形
        /// </summary>
        /// <param name="oldPid"></param>
        /// <param name="newPid"></param>
        /// <returns></returns>
        public bool UpdateParent_FZXG(string oldPid, string newPid)
        {
            return batcheditcasecausedal.UpdateParent_FZXG(oldPid, newPid);
        }


        
    }
}
